#ifndef QNormativLISTA_H
#define QNormativLISTA_H

#include "qmybaseformwidget.h"
#include "ui_qNormativlista.h"
#include <QStandardItemModel>
#include <QItemSelection>

class QNormativLista : public QMyBaseFormWidget
{
	Q_OBJECT

public:
    QNormativLista(QWidget *parent = 0);
    ~QNormativLista();
    void lista(const QString& nameSearch);
    void lista_detail(const QString& nameSearch);
    int getSelectedId(){return m_selectedText.toInt();}
    bool getStatusEnableF6(){return ui.pushButton_4->isEnabled();}
    virtual void pressEscape();
	virtual void pressReturn();
    QStandardItemModel *model;
    QStandardItemModel *model2;
    QStringList geInfo();
    

private:
    void deleteDok(int idDok);
    Ui::QNormativListaClass ui;
    QHeaderView *header;
    QHeaderView *header2;
    QString m_selectedText;
	QString m_selectedText_name;

    private slots:
        void selectionChanged(QModelIndex modelX, QModelIndex modelY );
        void on_pushButton_clicked();
        void on_pushButton_2_clicked();
        void on_pushButton_4_clicked();
		void lineEditTextChanged(const QString & text);
        void checkBoxClicked(int i);
        void pressDelete();
signals:
        void closeW();
        void procF2();
        void procF3();
        void procF6();
        void sNormativToNalog(QString &, QString&);


};

#endif // QNormativLISTA_H
